import request from '@/util/ProRequest'
export function selectProductionReport(pageNum,pageSize,productionReport) {
    return request({
        url: '/productionReport/page',
        method: 'get',
        params:{
            pageNum,
            pageSize,
            ...productionReport
        }
    })
}
export function selectById(id) {
    return request({
        url: `/productionReport/id/${id}`,
        method: 'get'
    })
}

export function deleteById(id) {
    return request({
        url: `/productionReport/delete/${id}`,
        method: 'delete'
    })
}
// 批量删除供应商
export function batchDelete(ids) {
    return request({
        url: '/productionReport/batchDelete?' + ids,
        method: 'delete'
    })
}
export function updateProductionReport(data) {
    return request({
        url: '/productionReport/update',
        method: 'put',
        data
    })
}
export function updateStatus1(id) {
    return request({
        url: `/productionReport/update1/${id}`,
        method: 'put'
    })
}
export function updateStatus2(id) {
    return request({
        url: `/productionReport/update2/${id}`,
        method: 'put'
    })
}
export function updateStatus3(id) {
    return request({
        url: `/productionReport/update3/${id}`,
        method: 'put'
    })
}
